package com.example.springbootdemo.thread;

import com.example.springbootdemo.AccountType;
import com.example.springbootdemo.Entity;

import java.math.BigDecimal;

public class testStateNew {
    public static void main(String[] args) {
//        Thread thread = new Thread(() -> {});
//        System.out.println(thread.getState()); // 输出 NEW
//        thread.start();
//        System.out.println(thread.getState()); // 输出 NEW
//        BigDecimal a = BigDecimal.ZERO;
//        Boolean b = false;
//        testM(a,b);
//        System.out.println(a);
//        System.out.println(b);
        Entity entity = new Entity();
        entity.setA(2);
        entity.setAccountType(AccountType.STORE);
        Entity e = testE(entity);
        System.out.println(e.getA()+" "+e.getAccountType());
    }

    private static Entity testE(Entity entity) {
        return entity;
    }

    private static void testM(BigDecimal a, Boolean b) {
        a = BigDecimal.valueOf(1.3);
        b = true;
    }

}
